<?php
// +----------------------------------------------------------------------
// | Author: 发仔 <i@fazi.me> 
// +----------------------------------------------------------------------

namespace app\admin\controller;

use think\Db;

class Order Extends Base
{
	protected $id = 'order_id';
	protected $table = 'order';
	protected $joins = [['car c','c.car_id = m.car_id','left'],['driver d','d.driver_id = m.driver_id','left'],['passenger p','p.passenger_id = m.passenger_id','left']];
	protected $field = 'm.*,c.number,d.name AS driver_name,d.phone AS driver_phone,p.name AS passenger_name,p.phone AS passenger_phone';
	
	public function dispatch() {
		
		return $this->detail();
	}
	
}
